//
//  HRNavigationController.h
//  A Learning Walk
//
//  Created by dllo on 16/6/13.
//  Copyright © 2016年 战斗民族. All rights reserved.
//

#import "HRNavigationController.h"
#import "HRPlayView.h"
#import "ZYPlayerViewController.h"


@interface HRNavigationController ()//<PlayViewDelegate>
@property (nonatomic,retain) HRPlayView *playView;

@end

@implementation HRNavigationController


- (void)viewDidLoad {
    [super viewDidLoad];
    // 防止其他ViewController的导航被遮挡, 这个类的主要作用是 PlayView
    self.navigationBarHidden = YES;
     // 开启一个通知接受,播放URL 及图片
    

    self.playView = [[HRPlayView alloc] init];
   // self.playView.delegate = self;
    [self.view addSubview:_playView];
    [_playView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(0);
        make.centerX.mas_equalTo(0);
        make.width.mas_equalTo(65);
        make.height.mas_equalTo(70);
    }];
    [_playView release];
    //初次启动跳转到播放页面
   // [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(toPlayerVCAction:) name:@"toPlayer" object:nil];
}
//
//-(void)toPlayerVCAction:(NSNotification *)noti{
//    ZYPlayerViewController *zyVC = [[ZYPlayerViewController alloc] init];
//    UINavigationController *NA = [[UINavigationController alloc] initWithRootViewController:zyVC];
//    [self presentViewController:NA animated:YES completion:^{
//        
//       
//    }];
//    //self.tabBarController.tabBar.hidden = YES;
//    [zyVC release];
//    [NA release];
//     NSLog(@"tiaotiaotiao");
//}

- (void)dealloc {
    [_playView release];
    // 关闭消息中心
    [[NSNotificationCenter defaultCenter] removeObserver:self];
    //[[NSNotificationCenter defaultCenter] removeObserver:self name:@"toPlayer" object:nil];
    [super dealloc];
}


@end
